<template>
  <el-result status="404" title="404" sub-title="页面不存在！">
    <template #extra>
      <el-button type="primary" @click="backHome">返回首页</el-button>
    </template>
  </el-result>
</template>

<script setup lang="ts">
  import { useRouter } from 'vue-router';
  const $router = useRouter();
  /**
   * 返回首页
   */
  const backHome = () => {
    $router.push('/');
  };
</script>
